home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Primer Plus
/
Java Primer Plus (Waite Group Proess)(1996).iso
/
chapter11
/
throwab.java
< prev
next >
Wrap
Text File
|
1995-12-31
|
343b
|
23 lines
/* Throwing things */
class baseball extends Throwable {
int speed;
}
class throwab {
public static void main(String args[]) throws baseball {
try {
throw new baseball();
} catch (ArithmeticException e) {
System.out.println("Arithmetic");
}
finally { System.out.println("Try is done");
}
}
}